package com.itboye.sunsun.message.ui;

import com.itboye.sunsun.R;
import com.itboye.sunsun.beans.MessageBean;
import com.itboye.sunsun.constants.SPContants;
import com.itboye.sunsun.custome.XListView;
import com.itboye.sunsun.network.HttpRequest;
import com.itboye.sunsun.support.BaseActivity;
import com.itboye.sunsun.utils.SPUtils;
import com.itboye.sunsun.volley.MyJsonRequest;
import com.itboye.sunsun.volley.XErrorListener;
import com.itboye.sunsun.volley.XRequestListener;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class MessageActivity extends BaseActivity {

	 
	@Override
	protected void onCreate(Bundle arg0) {
		// TODO Auto-generated method stub
		super.onCreate(arg0);
		setContentView(R.layout.activity_message);
		setStatusBarColor(R.color.orange);
		String type=getIntent().getStringExtra("type");
		if(type!=null){
			if(type.equals("shop")){
				findViewById(R.id.dingdanTongzhi).setVisibility(View.VISIBLE);
			}else{
				findViewById(R.id.dingdanTongzhi).setVisibility(View.GONE);
			}
		}else{
			findViewById(R.id.dingdanTongzhi).setVisibility(View.VISIBLE);
		}
		findViewById(R.id.xitongTongzhi).setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				startActivity(new Intent(getApplicationContext(), SystemAnnounceActivity.class));
			}
		});
		

		findViewById(R.id.dingdanTongzhi).setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				startActivity(new Intent(getApplicationContext(), OrderAnnounceActivity.class));
			}
		});
		
		findViewById(R.id.back).setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				finish();
			}
		});
		
//		getData();
	}
//
}
